#!/bin/sh

mkdir cl-gdbm-0.1
cp -R examples/ cl-gdbm.asd package.sh package.lisp makefile utilities.lisp test.lisp README cl-gdbm-stub.c gdbm-ffi.lisp high-level.lisp cl-gdbm-0.1/

rm -f cl-gdbm-latest.tar.gz cl-gdbm-latest.tar.gz.asc

tar -czvf cl-gdbm-0.1.tar.gz cl-gdbm-0.1/
ln -s /root/lisp/cl-gdbm/cl-gdbm-0.1.tar.gz /root/lisp/cl-gdbm/cl-gdbm-latest.tar.gz
/usr/bin/xterm -e gpg -b -a /root/lisp/cl-gdbm/cl-gdbm-0.1.tar.gz
ln -s /root/lisp/cl-gdbm/cl-gdbm-0.1.tar.gz.asc /root/lisp/cl-gdbm/cl-gdbm-latest.tar.gz.asc
rm -Rf cl-gdbm-0.1/